import { AxiosResponse } from 'axios';

import { pendingRequests, generateRequestKey } from '../request';
export function cancleSameRes(res: AxiosResponse) {
  const key = generateRequestKey(res.config);
  if (pendingRequests.has(key)) {
    pendingRequests.delete(key);
  }
}
